.custom-switch {
    padding-right: 2.25rem;
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 1.5em;
    padding-left: 1rem;
    font-size:.9rem;
    flex-wrap: nowrap;
    cursor:pointer;
    align-items: center;
}

.custom-switch label::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content:
    "";
    background-color: #fff;
    border: #adb5bd solid 1px;
}




    .custom-switch label::before,
    .custom-switch label {
        transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
        line-height: 1.8;
        cursor: pointer;
    }

    .custom-switch label::before {
        right: -2.2rem;
        width: 1.75rem;
        pointer-events: all;
        border-radius: 0.5rem;
    }

.custom-switch input:checked ~  label::before {
    color: #fff;
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}


.custom-switch label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: var(--color-primary);
}

.custom-switch  label::after {
    top: calc(0.25rem + 2px);
    right: calc(-2.1rem + 2px);
    top: 50%;
    transform: translateY(-50%);
    width: calc(1rem - 4px);
    height: calc(1rem - 4px);
    background-color: #adb5bd;
    border-radius: 0.5rem;
    transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;
    transition: transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    transition: transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;
}

.custom-switch input:checked ~  label::after {
    background-color: #fff;
    -webkit-transform: translateX(0.75rem);
    transform: translateY(-50%) translateX(-0.65rem);
}

    .custom-switch p.help-block{
        flex:1 1 100%;
    }


    .custom-switch.reverse {
        flex-direction: row-reverse; /* This will reverse the order of the elements within the .custom-switch container */
        padding-left: 2.25rem; /* Adjust the padding to ensure spacing works correctly after reversing */
        padding-right: 1rem; /* Adjust padding to match the reverse positioning */
    }

        .custom-switch.reverse label::before {
            left: 0; /* Move the background rectangle to the opposite side */
            right: auto; /* Reset the right property */
        }

        .custom-switch.reverse label::after {
            left: calc(0rem + 3px); /* Move the knob to the opposite side */
            right: auto; /* Reset the right property */
            transform: translateY(-50%) translateX(-0.05rem);
        }

        .custom-switch.reverse input:checked ~ label::after {
            left: calc(1.4rem + 2px);
        }
